import Vue from 'vue'
import Vuex from 'vuex'
import VeuxPersistence from 'vuex-persist'
import user from '@/store/modeules/user'

Vue.use(Vuex)

const vuexLocal = new VeuxPersistence({
  storage: window.localStorage
})

export default new Vuex.Store({
  modules: { user: user },
  plugins: [vuexLocal.plugin]
})
